fruits = ['apple', 'banana', 'orange']
print('apple' in fruits)
friends = ['Harry', 'Ron', 'Hermione']
separator = '*'
joined = separator.join(friends)
separated = joined.split(separator)
print(joined)
print(separated)
print(separated == friends) 

fruits.append("elephant")
fruits.sort()
print(fruits)
print(fruits.sort(reverse=True))
print(len(fruits))


# copy and deepcopy
a = [1, 2, [8, 9]]
b = a.copy()
c = list(a)
d = a[:]
print(f'{a=} {b=} {c=} {d=}')
